<?php
namespace app\index\controller;

class Demo
{
    //查询
    public function demo()
    {
        $cha = Db::table('ecm_goods')->where('goods_id','=',1)->find();

        echo "<pre>";
        print_r($cha);
        echo "</pre>";
    }
}